<template>
  <a-modal
    :width='1400'
    :visible='visible'
    :confirm-loading='loading'
    :title="isUpdate ? '修改' : '新建'"
    :body-style="{ paddingBottom: '8px' }"
    @update:visible='updateVisible'
    @ok="save"
  >
  <div class="ele-body ele-body-card">
    <a-card
      :bordered="true"
      :body-style="{padding: '5px'}">
      <a-form
        ref="form"
        :model="paramForm"
        :rules="rules"
        :label-col="{ md: { span: 11 }, sm: { span: 24 } }"
        :wrapper-col="{ md: { span: 13 }, sm: { span: 24 } }"
      >
        <a-row :gutter="8">
          <a-col :md="10" :sm="24" :xs="24">
            <a-form-item label='模板名称:' name='templateName'>
              <a-input v-model:value='form.templateName' allow-clear style="width: 300px;" />
            </a-form-item>
            <a-form-item label="喷淋版本:" name="templateCodeType">
              <a-select v-model:value="form.templateCodeType">
                <a-select-option :value="6">三代</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
          <a-col :md="4" :sm="24" :xs="24" >
            <a-form-item />
            <a-form-item v-if="!isUpdate">
              <a-button type='primary' html-type='button' @click='syncSetting'>
                一键同步已有设备的配置
              </a-button>
            </a-form-item>
          </a-col>
          <a-col :md="10" :sm="24" :xs="24" />
        </a-row>
        <a-divider orientation="left">喷淋参数</a-divider>
        <a-row :gutter='8'>
          <a-col :md='12' :sm='24' :xs='24'>
            <a-form-item label='调试模式' name='debugModel'>
              <a-switch
                checked-children='开'
                un-checked-children='关'
                autoFocus='false'
                :checked='paramForm.switch.debugModelCheck'
                @change='debugModelChange'
              />
            </a-form-item>
            <a-form-item  label='CO2传感器开关' name='cotwoSwitch'>
              <a-switch
                checked-children='开'
                un-checked-children='关'
                autoFocus='false'
                :checked='paramForm.switch.cotwoSwitchCheck'
                @change='cotwoSwitchChange'
              />
            </a-form-item>
            <a-form-item  label='NH3传感器开关' name='nhthreeSwitch'>
              <a-switch
                checked-children='开'
                un-checked-children='关'
                autoFocus='false'
                :checked='paramForm.switch.nhthreeSwitchCheck'
                @change='nhthreeSwitchChange'
              />
            </a-form-item>
            <a-form-item  label='H2S传感器开关' name='htwosSwitch'>
              <a-switch
                checked-children='开'
                un-checked-children='关'
                autoFocus='false'
                :checked='paramForm.switch.htwosSwitchCheck'
                @change='htwosSwitchChange'
              />
            </a-form-item>
            <a-form-item  label='CH4传感器开关' name='methaneSwitch'>
              <a-switch
                checked-children='开'
                un-checked-children='关'
                autoFocus='false'
                :checked='paramForm.switch.methaneSwitchCheck'
                @change='methaneSwitchChange'
              />
            </a-form-item>
            <a-form-item label='风机的控制模式' name='fanModel'>
              <a-radio-group v-model:value='form.fanModel'>
                <a-radio :value='1'>
                  手动模式
                </a-radio>
                <a-radio :value='2'>
                  温控模式
                </a-radio>
              </a-radio-group>
            </a-form-item>
            <a-form-item v-if='form.fanModel == 1' label='风机手动控制开关' name='fanHandSwitch'>
              <a-switch
                checked-children='开'
                un-checked-children='关'
                autoFocus='false'
                :checked='paramForm.switch.fanHandSwitchCheck'
                @change='fanHandSwitchChange'
              />
            </a-form-item>
            <a-form-item v-if='form.fanModel == 2' label='风机温控模式下启动温度(℃):' name='fanTempCtoStart'>
              <a-input v-model:value='form.fanTempCtoStart' placeholder='精确到小数点后1位' allow-clear />
            </a-form-item>
            <a-form-item v-if='form.fanModel == 2' label='风机温控模式下停止温度(℃):' name='fanTempCtoOff'>
              <a-input v-model:value='form.fanTempCtoOff' placeholder='精确到小数点后1位' allow-clear />
            </a-form-item>
            <a-form-item label='风机在电磁阀打开前提前多少秒关闭(秒):' name='fanShutdownTime'>
              <a-input style="width: 70%" v-model:value='form.fanShutdownTime' placeholder='单位秒' allow-clear />
              <a-alert message="范围从0到60" style="margin-top:1px;font-size: 9px;padding:2px 3px;width: 70%" type="info" show-icon />
            </a-form-item>
            <a-form-item label='水泵在喷淋之前多长时间打开(秒):' name='pumpOpenTime'>
              <a-input  style="width: 70%" v-model:value='form.pumpOpenTime' placeholder='单位秒' allow-clear />
              <a-alert message="范围从0到60" style="margin-top:1px;font-size: 9px;padding:2px 3px;width: 70%" type="info" show-icon />
            </a-form-item>
          </a-col>

          <a-col :md='12' :sm='24' :xs='24'>
            <a-form-item label='温度报警下限(℃):' name='tempAlarmLow'>
              <a-input v-model:value='form.tempAlarmLow' placeholder='精确到小数点后1位' allow-clear />
              <a-alert message="精确到小数点后1位,范围从-500到900" style="margin-top:1px;font-size: 9px;padding:2px 3px;" type="info" show-icon />
            </a-form-item>
            <a-form-item label='温度报警上限(℃):' name='tempAlarmHigh'>
              <a-input v-model:value='form.tempAlarmHigh' placeholder='精确到小数点后1位' allow-clear />
              <a-alert message="精确到小数点后1位,范围从-500到900" style="margin-top:1px;font-size: 9px;padding:2px 3px;" type="info" show-icon />
            </a-form-item>
            <a-form-item label='湿度报警下限(%RH):' name='humAlarmLow'>
              <a-input v-model:value='form.humAlarmLow' placeholder='精确到小数点后1位' allow-clear />
              <a-alert message="精确到小数点后1位,范围从0到1000" style="margin-top:1px;font-size: 9px;padding:2px 3px;" type="info" show-icon />
            </a-form-item>
            <a-form-item label='湿度报警上限(%RH):' name='humAlarmHigh'>
              <a-input v-model:value='form.humAlarmHigh' placeholder='精确到小数点后1位' allow-clear />
              <a-alert message="精确到小数点后1位,范围从0到1000" style="margin-top:1px;font-size: 9px;padding:2px 3px;" type="info" show-icon />
            </a-form-item>
            <a-form-item label='温湿度报警检测时长(秒):' name='tempHumCheckTime'>
              <a-input v-model:value='form.tempHumCheckTime' placeholder='请输入温湿度报警检测时长' allow-clear />
            </a-form-item>
            <a-form-item label='甲烷报警下限(%LEL):' name='methaneAlarmLow'>
              <a-input v-model:value='form.methaneAlarmLow' placeholder='请输入甲烷报警下限' allow-clear />
              <a-alert message="范围从0到1000" style="margin-top:1px;font-size: 9px;padding:2px 3px;" type="info" show-icon />
            </a-form-item>
            <a-form-item label='甲烷报警上限(%LEL):' name='methaneAlarmHigh'>
              <a-input v-model:value='form.methaneAlarmHigh' placeholder='请输入甲烷报警上限' allow-clear />
              <a-alert message="范围从0到1000" style="margin-top:1px;font-size: 9px;padding:2px 3px;" type="info" show-icon />
            </a-form-item>
            <a-form-item label='甲烷报警检测时长(秒):' name='methaneCheckTime'>
              <a-input v-model:value='form.methaneCheckTime' placeholder='请输入甲烷报警检测时长' allow-clear />
            </a-form-item>
            <a-form-item label='CO2报警下限(ppm):' name='cotwoLow'>
              <a-input v-model:value='form.cotwoLow' placeholder='' allow-clear />
              <a-alert message="范围从10-36767" style="margin-top:1px;font-size: 9px;padding:2px 3px;" type="info" show-icon />
            </a-form-item>
            <a-form-item label='CO2报警上限(ppm):' name='cotwoHigh'>
              <a-input v-model:value='form.cotwoHigh' placeholder='' allow-clear />
              <a-alert message="范围从10-36767" style="margin-top:1px;font-size: 9px;padding:2px 3px;" type="info" show-icon />
            </a-form-item>
            <a-form-item label='NH3报警下限(ppm):' name='nhthreeLow'>
              <a-input v-model:value='form.nhthreeLow' placeholder='' allow-clear />
              <a-alert message="范围从0-500" style="margin-top:1px;font-size: 9px;padding:2px 3px;" type="info" show-icon />
            </a-form-item>
            <a-form-item label='NH3报警上限(ppm):' name='nhthreeHigh'>
              <a-input v-model:value='form.nhthreeHigh' placeholder='' allow-clear />
              <a-alert message="范围从0-500" style="margin-top:1px;font-size: 9px;padding:2px 3px;" type="info" show-icon />
            </a-form-item>
            <a-form-item label='H2S报警下限(ppm):' name='htwosLow'>
              <a-input v-model:value='form.htwosLow' placeholder='' allow-clear />
              <a-alert message="范围从0-500" style="margin-top:1px;font-size: 9px;padding:2px 3px;" type="info" show-icon />
            </a-form-item>
            <a-form-item label='H2S报警上限(ppm):' name='htwosHigh'>
              <a-input v-model:value='form.htwosHigh' placeholder='' allow-clear />
              <a-alert message="范围从0-500" style="margin-top:1px;font-size: 9px;padding:2px 3px;" type="info" show-icon />
            </a-form-item>
          </a-col>
        </a-row>
        <a-divider>三代喷淋参数</a-divider>
        <a-alert message="超级模式1含义是脉冲模式；超级模式2的含义是恢复常规喷淋模式；超级模式3含义是喷淋房模式" type="warning" />
        <a-row :gutter='8'>
          <a-col :md='11' :sm='24' :xs='24'>
            <a-form-item label='超级模式3(喷淋房模式)的喷淋模式' name='super3SprayMethod'>
              <a-radio-group v-model:value='form.super3SprayMethod'>
                <a-radio :value='0'>
                  一直喷
                </a-radio>
                <a-radio :value='1'>
                  交替循环喷淋
                </a-radio>
              </a-radio-group>
            </a-form-item>
            <a-form-item label='1/2小组和3/4小组交替喷淋的时间(秒):' name='super3AlternateTime'>
              <a-input v-model:value='form.super3AlternateTime' placeholder='' allow-clear />
            </a-form-item>
            <a-form-item label='220V提前24V开启的时间(秒):' name='v220Before24vTime'>
              <a-input v-model:value='form.v220Before24vTime' placeholder='' allow-clear />
            </a-form-item>
            <a-form-item label='220V延后24V关闭的时间(秒):' name='v220After24vTime'>
              <a-input v-model:value='form.v220After24vTime' placeholder='' allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md='13' :sm='24' :xs='24'>
            <a-form-item label='超级模式1(脉冲模式)使能喷淋数据' name='super1ValidMode'>
              <a-radio-group v-model:value='form.super1ValidMode'>
                <a-radio :value='0'>
                  不使能
                </a-radio>
                <a-radio :value='1'>
                  喷淋数据A
                </a-radio>
                <a-radio :value='2'>
                  喷淋数据B
                </a-radio>
                <a-radio :value='3'>
                  喷淋数据C
                </a-radio>
                <a-radio :value='4'>
                  喷淋数据D
                </a-radio>
                <a-radio :value='5'>
                  喷淋数据E
                </a-radio>
                <a-radio :value='6'>
                  喷淋数据F
                </a-radio>
              </a-radio-group>
            </a-form-item>
            <a-form-item label='超级模式2(恢复常规喷淋模式)的使能数据:' name='super2ValidMode'>
              <a-radio-group v-model:value='form.super2ValidMode'>
                <a-radio :value='0'>
                  不使能
                </a-radio>
                <a-radio :value='1'>
                  喷淋数据A
                </a-radio>
                <a-radio :value='2'>
                  喷淋数据B
                </a-radio>
                <a-radio :value='3'>
                  喷淋数据C
                </a-radio>
                <a-radio :value='4'>
                  喷淋数据D
                </a-radio>
                <a-radio :value='5'>
                  喷淋数据E
                </a-radio>
                <a-radio :value='6'>
                  喷淋数据F
                </a-radio>
              </a-radio-group>
            </a-form-item>
          </a-col>
        </a-row>

        <a-alert message="喷淋数据单位秒，范围从0到32767" type="warning" />
        <a-divider orientation="left"><a-tooltip color='orange' title='范围从0到32767'>ABCDEF6组喷淋模式设置</a-tooltip></a-divider>
        <a-row :gutter="8">
          <a-col :md="4" :sm="24" :xs="24">
            <a-form-item label="喷淋数据A" />
            <a-form-item label="喷淋数据B" />
            <a-form-item label="喷淋数据C" />
            <a-form-item label="喷淋数据D" />
            <a-form-item label="喷淋数据E" />
            <a-form-item label="喷淋数据F" />
          </a-col>
          <a-col :md="10" :sm="24" :xs="24">
            <a-form-item label="动作时长(秒):" name="A_ACTION">
              <a-input v-model:value="paramForm.sprayModelData.A_ACTION" placeholder="单位s" allow-clear />
            </a-form-item>
            <a-form-item label="动作时长(秒):" name="B_ACTION">
              <a-input v-model:value="paramForm.sprayModelData.B_ACTION" placeholder="单位s" allow-clear />
            </a-form-item>
            <a-form-item label="动作时长(秒):" name="C_ACTION">
              <a-input v-model:value="paramForm.sprayModelData.C_ACTION" placeholder="单位s" allow-clear />
            </a-form-item>
            <a-form-item label="动作时长(秒):" name="D_ACTION">
              <a-input v-model:value="paramForm.sprayModelData.D_ACTION" placeholder="单位s" allow-clear />
            </a-form-item>
            <a-form-item label="动作时长(秒):" name="E_ACTION">
              <a-input v-model:value="paramForm.sprayModelData.E_ACTION" placeholder="单位s" allow-clear />
            </a-form-item>
            <a-form-item label="动作时长(秒):" name="F_ACTION">
              <a-input v-model:value="paramForm.sprayModelData.F_ACTION" placeholder="单位s" allow-clear />
            </a-form-item>
          </a-col>

          <a-col :md="10" :sm="24" :xs="24">
            <a-form-item label="停止时长(秒):" name="A_STOP">
              <a-input v-model:value="paramForm.sprayModelData.A_STOP" placeholder="单位s" allow-clear />
            </a-form-item>
            <a-form-item label="停止时长(秒):" name="B_STOP">
              <a-input v-model:value="paramForm.sprayModelData.B_STOP" placeholder="单位s" allow-clear />
            </a-form-item>
            <a-form-item label="停止时长(秒):" name="C_STOP">
              <a-input v-model:value="paramForm.sprayModelData.C_STOP" placeholder="单位s" allow-clear />
            </a-form-item>
            <a-form-item label="停止时长(秒):" name="D_STOP">
              <a-input v-model:value="paramForm.sprayModelData.D_STOP" placeholder="单位s" allow-clear />
            </a-form-item>
            <a-form-item label="停止时长(秒):" name="E_STOP">
              <a-input v-model:value="paramForm.sprayModelData.E_STOP" placeholder="单位s" allow-clear />
            </a-form-item>
            <a-form-item label="停止时长(秒):" name="F_STOP">
              <a-input v-model:value="paramForm.sprayModelData.F_STOP" placeholder="单位s" allow-clear />
            </a-form-item>
          </a-col>
        </a-row>
        <!---------------- 时间设置----------->
        <a-alert message="喷淋时间可设置范围是00:00-24:00,区域是必须选择的，开始时间必须小于结束时间;超级模式1含义是脉冲模式；超级模式2的含义是恢复常规喷淋模式；超级模式3含义是喷淋房模式" type="warning" />
        <a-alert message="温度区间可设置范围-500到900，精确到小数点后1位，温度上限必须大于温度下限" type="warning" />
        <a-divider orientation="left"><a-tooltip color='orange' title='假设要设置全天时间里面，5s喷一次的固定喷淋时序。可以值设置时间段一开始结束时间是全天，其他不设置，然后配合运行时长和停止时长模式'>喷淋时间设置</a-tooltip></a-divider>
        <a-divider orientation="left" orientation-margin="0px">时间段一</a-divider>
        <a-row :gutter="8">
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="开始时间:" name="TIME1_START">
              <a-time-picker v-model:value="paramForm.TIME1_START" format="HH:mm" @change="selectTime1Start"  allow-clear  />
            </a-form-item>
          </a-col>
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="结束时间(截止24:00):" name="TIME1_STOP">
              <time24-select :value="paramForm.TIME1_OVER" @modify="selectTime1Over" />
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME1_VALID">
              <a-select v-model:value="timeConfForm.TIME1_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一</a-select-option>
                <a-select-option :value="8">超级模式二</a-select-option>
                <a-select-option :value="9">超级模式三</a-select-option>
                <a-select-option :value="10">温控模式</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
          <a-col class='regionclass' :md="5" :sm="24" :xs="24" >
            <a-form-item label="区域:" name="TIME1_REGION">
              <a-select v-model:value="paramForm.TIME1_REGION_ARR" mode="multiple" @change="time1RegionChange">
                <a-select-option :value="1">1区</a-select-option>
                <a-select-option :value="2">2区</a-select-option>
                <a-select-option :value="4">3区</a-select-option>
                <a-select-option :value="8">4区</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="8">
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="温度上限1(℃):" name="TIME1_TEMP1_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME1_TEMP1_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限2(℃):" name="TIME1_TEMP2_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME1_TEMP2_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限3(℃):" name="TIME1_TEMP3_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME1_TEMP3_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限4(℃):" name="TIME1_TEMP4_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME1_TEMP4_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="8" :sm="24" :xs="24">
            <a-form-item label="温度下限1(℃):" name="TIME1_TEMP1_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME1_TEMP1_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限2(℃):" name="TIME1_TEMP2_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME1_TEMP2_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限3(℃):" name="TIME1_TEMP3_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME1_TEMP3_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限4(℃):" name="TIME1_TEMP4_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME1_TEMP4_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>

          <a-col :md="9" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME1_TEMP1_VALID">
              <a-select v-model:value="timeConfForm.TIME1_TEMP1_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME1_TEMP2_VALID">
              <a-select v-model:value="timeConfForm.TIME1_TEMP2_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME1_TEMP3_VALID">
              <a-select v-model:value="timeConfForm.TIME1_TEMP3_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME1_TEMP4_VALID">
              <a-select v-model:value="timeConfForm.TIME1_TEMP4_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-divider orientation="left" orientation-margin="0px">时间段二</a-divider>
        <a-row :gutter="8">
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="时间段二开始时间:" name="TIME2_START">
              <a-time-picker v-model:value="paramForm.TIME2_START" format="HH:mm" @change="selectTime2Start" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="结束时间(截止24:00):" name="TIME2_STOP">
              <time24-select :value="paramForm.TIME2_OVER" @modify="selectTime2Over" />
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME2_VALID">
              <a-select v-model:value="timeConfForm.TIME2_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一</a-select-option>
                <a-select-option :value="8">超级模式二</a-select-option>
                <a-select-option :value="9">超级模式三</a-select-option>
                <a-select-option :value="10">温控模式</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
          <a-col class='regionclass' :md="5" :sm="24" :xs="24" >
            <a-form-item label="区域:" name="TIME2_REGION">
              <a-select v-model:value="paramForm.TIME2_REGION_ARR" mode="multiple" @change="time2RegionChange">
                <a-select-option :value="1">1区</a-select-option>
                <a-select-option :value="2">2区</a-select-option>
                <a-select-option :value="4">3区</a-select-option>
                <a-select-option :value="8">4区</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="8">
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="温度上限1(℃):" name="TIME2_TEMP1_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME2_TEMP1_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限2(℃):" name="TIME2_TEMP2_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME2_TEMP2_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限3(℃):" name="TIME2_TEMP3_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME2_TEMP3_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限4(℃):" name="TIME2_TEMP4_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME2_TEMP4_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="8" :sm="24" :xs="24">
            <a-form-item label="温度下限1(℃):" name="TIME2_TEMP1_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME2_TEMP1_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限2(℃):" name="TIME2_TEMP2_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME2_TEMP2_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限3(℃):" name="TIME2_TEMP3_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME2_TEMP3_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限4(℃):" name="TIME2_TEMP4_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME2_TEMP4_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>

          <a-col :md="9" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME2_TEMP1_VALID">
              <a-select v-model:value="timeConfForm.TIME2_TEMP1_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME2_TEMP2_VALID">
              <a-select v-model:value="timeConfForm.TIME2_TEMP2_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME2_TEMP3_VALID">
              <a-select v-model:value="timeConfForm.TIME2_TEMP3_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME2_TEMP4_VALID">
              <a-select v-model:value="timeConfForm.TIME2_TEMP4_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-divider orientation="left" orientation-margin="0px">时间段三</a-divider>
        <a-row :gutter="8">
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="时间段三开始时间:" name="TIME3_START">
              <a-time-picker v-model:value="paramForm.TIME3_START" format="HH:mm" @change="selectTime3Start" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="结束时间(截止24:00):" name="TIME3_STOP">
              <time24-select :value="paramForm.TIME3_OVER" @modify="selectTime3Over" />
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME3_VALID">
              <a-select v-model:value="timeConfForm.TIME3_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一</a-select-option>
                <a-select-option :value="8">超级模式二</a-select-option>
                <a-select-option :value="9">超级模式三</a-select-option>
                <a-select-option :value="10">温控模式</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
          <a-col class='regionclass' :md="5" :sm="24" :xs="24" >
            <a-form-item label="区域:" name="TIME3_REGION">
              <a-select v-model:value="paramForm.TIME3_REGION_ARR" mode="multiple" @change="time3RegionChange">
                <a-select-option :value="1">1区</a-select-option>
                <a-select-option :value="2">2区</a-select-option>
                <a-select-option :value="4">3区</a-select-option>
                <a-select-option :value="8">4区</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="8">
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="温度上限1(℃):" name="TIME3_TEMP1_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME3_TEMP1_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限2(℃):" name="TIME3_TEMP2_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME3_TEMP2_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限3(℃):" name="TIME3_TEMP3_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME3_TEMP3_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限4(℃):" name="TIME3_TEMP4_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME3_TEMP4_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="8" :sm="24" :xs="24">
            <a-form-item label="温度下限1(℃):" name="TIME3_TEMP1_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME3_TEMP1_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限2(℃):" name="TIME3_TEMP2_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME3_TEMP2_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限3(℃):" name="TIME3_TEMP3_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME3_TEMP3_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限4(℃):" name="TIME3_TEMP4_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME3_TEMP4_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>

          <a-col :md="9" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME3_TEMP1_VALID">
              <a-select v-model:value="timeConfForm.TIME3_TEMP1_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME3_TEMP2_VALID">
              <a-select v-model:value="timeConfForm.TIME3_TEMP2_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME3_TEMP3_VALID">
              <a-select v-model:value="timeConfForm.TIME3_TEMP3_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME3_TEMP4_VALID">
              <a-select v-model:value="timeConfForm.TIME3_TEMP4_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-divider orientation="left" orientation-margin="0px">时间段四</a-divider>
        <a-row :gutter="8">
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="时间段四开始时间:" name="TIME4_START">
              <a-time-picker v-model:value="paramForm.TIME4_START" format="HH:mm" @change="selectTime4Start" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="结束时间(截止24:00):" name="TIME4_STOP">
              <time24-select :value="paramForm.TIME4_OVER" @modify="selectTime4Over" />
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME4_VALID">
              <a-select v-model:value="timeConfForm.TIME4_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一</a-select-option>
                <a-select-option :value="8">超级模式二</a-select-option>
                <a-select-option :value="9">超级模式三</a-select-option>
                <a-select-option :value="10">温控模式</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
          <a-col class='regionclass' :md="5" :sm="24" :xs="24" >
            <a-form-item label="区域:" name="TIME4_REGION">
              <a-select v-model:value="paramForm.TIME4_REGION_ARR" mode="multiple" @change="time4RegionChange">
                <a-select-option :value="1">1区</a-select-option>
                <a-select-option :value="2">2区</a-select-option>
                <a-select-option :value="4">3区</a-select-option>
                <a-select-option :value="8">4区</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="8">
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="温度上限1(℃):" name="TIME4_TEMP1_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME4_TEMP1_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限2(℃):" name="TIME4_TEMP2_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME4_TEMP2_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限3(℃):" name="TIME4_TEMP3_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME4_TEMP3_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限4(℃):" name="TIME4_TEMP4_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME4_TEMP4_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="8" :sm="24" :xs="24">
            <a-form-item label="温度下限1(℃):" name="TIME4_TEMP1_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME4_TEMP1_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限2(℃):" name="TIME4_TEMP2_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME4_TEMP2_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限3(℃):" name="TIME4_TEMP3_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME4_TEMP3_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限4(℃):" name="TIME4_TEMP4_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME4_TEMP4_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>

          <a-col :md="9" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME4_TEMP1_VALID">
              <a-select v-model:value="timeConfForm.TIME4_TEMP1_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME4_TEMP2_VALID">
              <a-select v-model:value="timeConfForm.TIME4_TEMP2_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME4_TEMP3_VALID">
              <a-select v-model:value="timeConfForm.TIME4_TEMP3_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME4_TEMP4_VALID">
              <a-select v-model:value="timeConfForm.TIME4_TEMP4_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-divider orientation="left" orientation-margin="0px">时间段五</a-divider>
        <a-row :gutter="8">
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="时间段五开始时间:" name="TIME5_START">
              <a-time-picker v-model:value="paramForm.TIME5_START" format="HH:mm" @change="selectTime5Start" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="结束时间(截止24:00):" name="TIME5_STOP">
              <time24-select :value="paramForm.TIME5_OVER" @modify="selectTime5Over" />
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME5_VALID">
              <a-select v-model:value="timeConfForm.TIME5_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一</a-select-option>
                <a-select-option :value="8">超级模式二</a-select-option>
                <a-select-option :value="9">超级模式三</a-select-option>
                <a-select-option :value="10">温控模式</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
          <a-col class='regionclass' :md="5" :sm="24" :xs="24" >
            <a-form-item label="区域:" name="TIME5_REGION">
              <a-select v-model:value="paramForm.TIME5_REGION_ARR" mode="multiple" @change="time5RegionChange">
                <a-select-option :value="1">1区</a-select-option>
                <a-select-option :value="2">2区</a-select-option>
                <a-select-option :value="4">3区</a-select-option>
                <a-select-option :value="8">4区</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="8">
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="温度上限1(℃):" name="TIME5_TEMP1_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME5_TEMP1_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限2(℃):" name="TIME5_TEMP2_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME5_TEMP2_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限3(℃):" name="TIME5_TEMP3_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME5_TEMP3_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限4(℃):" name="TIME5_TEMP4_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME5_TEMP4_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="8" :sm="24" :xs="24">
            <a-form-item label="温度下限1(℃):" name="TIME5_TEMP1_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME5_TEMP1_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限2(℃):" name="TIME5_TEMP2_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME5_TEMP2_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限3(℃):" name="TIME5_TEMP3_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME5_TEMP3_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限4(℃):" name="TIME5_TEMP4_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME5_TEMP4_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>

          <a-col :md="9" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME5_TEMP1_VALID">
              <a-select v-model:value="timeConfForm.TIME5_TEMP1_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME5_TEMP2_VALID">
              <a-select v-model:value="timeConfForm.TIME5_TEMP2_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME5_TEMP3_VALID">
              <a-select v-model:value="timeConfForm.TIME5_TEMP3_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME5_TEMP4_VALID">
              <a-select v-model:value="timeConfForm.TIME5_TEMP4_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-divider orientation="left" orientation-margin="0px">时间段六</a-divider>
        <a-row :gutter="8">
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="时间段六开始时间:" name="TIME6_START">
              <a-time-picker v-model:value="paramForm.TIME6_START" format="HH:mm" @change="selectTime6Start" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="结束时间(截止24:00):" name="TIME6_STOP">
              <time24-select :value="paramForm.TIME6_OVER" @modify="selectTime6Over" />
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME6_VALID">
              <a-select v-model:value="timeConfForm.TIME6_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一</a-select-option>
                <a-select-option :value="8">超级模式二</a-select-option>
                <a-select-option :value="9">超级模式三</a-select-option>
                <a-select-option :value="10">温控模式</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
          <a-col class='regionclass' :md="5" :sm="24" :xs="24" >
            <a-form-item label="区域:" name="TIME6_REGION">
              <a-select v-model:value="paramForm.TIME6_REGION_ARR" mode="multiple" @change="time6RegionChange">
                <a-select-option :value="1">1区</a-select-option>
                <a-select-option :value="2">2区</a-select-option>
                <a-select-option :value="4">3区</a-select-option>
                <a-select-option :value="8">4区</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="8">
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="温度上限1(℃):" name="TIME6_TEMP1_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME6_TEMP1_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限2(℃):" name="TIME6_TEMP2_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME6_TEMP2_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限3(℃):" name="TIME6_TEMP3_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME6_TEMP3_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限4(℃):" name="TIME6_TEMP4_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME6_TEMP4_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="8" :sm="24" :xs="24">
            <a-form-item label="温度下限1(℃):" name="TIME6_TEMP1_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME6_TEMP1_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限2(℃):" name="TIME6_TEMP2_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME6_TEMP2_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限3(℃):" name="TIME6_TEMP3_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME6_TEMP3_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限4(℃):" name="TIME6_TEMP4_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME6_TEMP4_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>

          <a-col :md="9" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME6_TEMP1_VALID">
              <a-select v-model:value="timeConfForm.TIME6_TEMP1_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME6_TEMP2_VALID">
              <a-select v-model:value="timeConfForm.TIME6_TEMP2_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME6_TEMP3_VALID">
              <a-select v-model:value="timeConfForm.TIME6_TEMP3_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME6_TEMP4_VALID">
              <a-select v-model:value="timeConfForm.TIME6_TEMP4_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-divider orientation="left" orientation-margin="0px">时间段七</a-divider>
        <a-row :gutter="8">
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="时间段七开始时间:" name="TIME7_START">
              <a-time-picker v-model:value="paramForm.TIME7_START" format="HH:mm" @change="selectTime7Start" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="结束时间(截止24:00):" name="TIME7_STOP">
              <time24-select :value="paramForm.TIME7_OVER" @modify="selectTime7Over" />
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME7_VALID">
              <a-select v-model:value="timeConfForm.TIME7_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一</a-select-option>
                <a-select-option :value="8">超级模式二</a-select-option>
                <a-select-option :value="9">超级模式三</a-select-option>
                <a-select-option :value="10">温控模式</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
          <a-col class='regionclass' :md="5" :sm="24" :xs="24" >
            <a-form-item label="区域:" name="TIME7_REGION">
              <a-select v-model:value="paramForm.TIME7_REGION_ARR" mode="multiple" @change="time7RegionChange">
                <a-select-option :value="1">1区</a-select-option>
                <a-select-option :value="2">2区</a-select-option>
                <a-select-option :value="4">3区</a-select-option>
                <a-select-option :value="8">4区</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="8">
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="温度上限1(℃):" name="TIME7_TEMP1_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME7_TEMP1_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限2(℃):" name="TIME7_TEMP2_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME7_TEMP2_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限3(℃):" name="TIME7_TEMP3_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME7_TEMP3_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限4(℃):" name="TIME7_TEMP4_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME7_TEMP4_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="8" :sm="24" :xs="24">
            <a-form-item label="温度下限1(℃):" name="TIME7_TEMP1_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME7_TEMP1_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限2(℃):" name="TIME7_TEMP2_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME7_TEMP2_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限3(℃):" name="TIME7_TEMP3_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME7_TEMP3_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限4(℃):" name="TIME7_TEMP4_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME7_TEMP4_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>

          <a-col :md="9" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME7_TEMP1_VALID">
              <a-select v-model:value="timeConfForm.TIME7_TEMP1_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME7_TEMP2_VALID">
              <a-select v-model:value="timeConfForm.TIME7_TEMP2_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME7_TEMP3_VALID">
              <a-select v-model:value="timeConfForm.TIME7_TEMP3_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME7_TEMP4_VALID">
              <a-select v-model:value="timeConfForm.TIME7_TEMP4_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-divider orientation="left" orientation-margin="0px">时间段八</a-divider>
        <a-row :gutter="8">
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="时间段八开始时间:" name="TIME8_START">
              <a-time-picker v-model:value="paramForm.TIME8_START" format="HH:mm" @change="selectTime8Start" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="结束时间(截止24:00):" name="TIME8_STOP">
              <time24-select :value="paramForm.TIME8_OVER" @modify="selectTime8Over" />
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME8_VALID">
              <a-select v-model:value="timeConfForm.TIME8_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一</a-select-option>
                <a-select-option :value="8">超级模式二</a-select-option>
                <a-select-option :value="9">超级模式三</a-select-option>
                <a-select-option :value="10">温控模式</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
          <a-col class='regionclass' :md="5" :sm="24" :xs="24" >
            <a-form-item label="区域:" name="TIME8_REGION">
              <a-select v-model:value="paramForm.TIME8_REGION_ARR" mode="multiple" @change="time8RegionChange">
                <a-select-option :value="1">1区</a-select-option>
                <a-select-option :value="2">2区</a-select-option>
                <a-select-option :value="4">3区</a-select-option>
                <a-select-option :value="8">4区</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
        <a-row :gutter="8">
          <a-col :md="7" :sm="24" :xs="24">
            <a-form-item label="温度上限1(℃):" name="TIME8_TEMP1_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME8_TEMP1_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限2(℃):" name="TIME8_TEMP2_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME8_TEMP2_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限3(℃):" name="TIME8_TEMP3_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME8_TEMP3_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度上限4(℃):" name="TIME8_TEMP4_RANGE_HIGH">
              <a-input v-model:value="timeConfForm.TIME8_TEMP4_RANGE_HIGH" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>
          <a-col :md="8" :sm="24" :xs="24">
            <a-form-item label="温度下限1(℃):" name="TIME8_TEMP1_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME8_TEMP1_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限2(℃):" name="TIME8_TEMP2_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME8_TEMP2_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限3(℃):" name="TIME8_TEMP3_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME8_TEMP3_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
            <a-form-item label="温度下限4(℃):" name="TIME8_TEMP4_RANGE_LOW">
              <a-input v-model:value="timeConfForm.TIME8_TEMP4_RANGE_LOW" placeholder="精确到小数点后1位" allow-clear />
            </a-form-item>
          </a-col>

          <a-col :md="9" :sm="24" :xs="24">
            <a-form-item label="喷淋数据:" name="TIME8_TEMP1_VALID">
              <a-select v-model:value="timeConfForm.TIME8_TEMP1_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME8_TEMP2_VALID">
              <a-select v-model:value="timeConfForm.TIME8_TEMP2_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME8_TEMP3_VALID">
              <a-select v-model:value="timeConfForm.TIME8_TEMP3_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
            <a-form-item label="喷淋数据:" name="TIME8_TEMP4_VALID">
              <a-select v-model:value="timeConfForm.TIME8_TEMP4_VALID">
                <a-select-option :value="0">无效</a-select-option>
                <a-select-option :value="1">喷淋数据A</a-select-option>
                <a-select-option :value="2">喷淋数据B</a-select-option>
                <a-select-option :value="3">喷淋数据C</a-select-option>
                <a-select-option :value="4">喷淋数据D</a-select-option>
                <a-select-option :value="5">喷淋数据E</a-select-option>
                <a-select-option :value="6">喷淋数据F</a-select-option>
                <a-select-option :value="7">超级模式一(脉冲模式)</a-select-option>
                <a-select-option :value="8">超级模式二(恢复常规喷淋模式)</a-select-option>
                <a-select-option :value="9">超级模式三(喷淋房模式)</a-select-option>
              </a-select>
            </a-form-item>
          </a-col>
        </a-row>
      </a-form>
    </a-card>
    <DeviceSprayCtocabinetFirmwareSprayConfigTemplateDistributeSyncsettingvthree v-if="showSelectDevice"
                                                                                 v-model:visible="showSelectDevice"
                                                                                 :data="current"
                                                                                 @done="synctoDevice"
    />
  </div>
  </a-modal>
</template>

<script>
import dayjs from 'dayjs';
import Time24Select from '@/components/Time24Select/Time24Select.vue';
import { message } from 'ant-design-vue';
import { DeviceSprayConfigTemplateApi } from '@/api/property/DeviceSprayConfigTemplateApi';
import DeviceSprayCtocabinetFirmwareSprayConfigTemplateDistributeSyncsettingvthree from './ctocabinet-firmware-spray-config-template-distribute-syncsettingvthree.vue'
import {DeviceSprayConfigApi} from "@/api/property/DeviceSprayConfigApi";
export default {
  name: 'DeviceSprayCtocabinetFirmwareSprayConfigTemplateEditVthree',
  components: {
    Time24Select,
    DeviceSprayCtocabinetFirmwareSprayConfigTemplateDistributeSyncsettingvthree
  },
  emits: ['done', 'update:visible'],
  props: {
    // 弹窗是否打开
    visible: Boolean,
    data: Object
  },
  created() {
    if (this.data) {
      this.form = Object.assign({}, this.data);
      this.isUpdate = true;
      this.init(this.data);
      this.form.templateCodeType = 6;
    } else {
      this.form = {};
      this.paramForm.sprayModelData = {};
      this.paramForm.switch = {};
      this.form.templateCodeType = 6;
      this.isUpdate = false;
    }
  },
  data() {
    return {
      form : {}, //原始数据
      paramForm : {},
      timeConfForm : {}, //时间参数，待提交的
      rules: {

      },
      // 提交状态
      loading: false,
      // 是否是修改
      isUpdate: false,
      showSelectDevice : false,
      current : null
    };
  },
  methods: {
    updateVisible(value) {
      this.$emit('update:visible', value);
    },
    syncSetting() {
      console.log(this.form);
      this.current = this.form;
      this.showSelectDevice = true;
    },
    synctoDevice (recordId) {
      let that = this;
      DeviceSprayConfigApi.detail({"recordId" : recordId}).then(res => {
        delete res.recordId;
        delete res.updateTime;
        delete res.updateUser;
        delete res.createTime;
        delete res.createUser;
        res.templateCodeType = that.form.templateCodeType;
        res.templateName = that.form.templateName;
        that.init(res);
      }).catch((e) => {
        console.log(e);
      });
    },
    parse1248(region) {
      let arr = new Array();
      if (!region) {
        return arr;
      }
      if (region & 1 == 1) {
        arr.push(1);
      }
      if (region >> 1 & 1 == 1) {
        arr.push(2);
      }
      if (region >> 2 & 1 == 1) {
        arr.push(4);
      }
      if (region >> 3 & 1 == 1) {
        arr.push(8);
      }
      return arr;
    },
    init(initData) {
      this.paramForm.sprayModelData = {};
      this.paramForm.switch = {};
      this.timeConfForm = {};
      let _conf = initData;
      if (_conf) {
        this.form = _conf;
        //{"A_STOP":30,"A_ACTION":20,"B_STOP":280,"B_ACTION":10,"C_STOP":400,"C_ACTION":10,"D_STOP":400,"D_ACTION":10,"E_STOP":400,"E_ACTION":10,"F_STOP":400,"F_ACTION":10}
        this.paramForm.sprayModelData = _conf.sprayModelData ? ((JSON.parse(_conf.sprayModelData)) || {}) : {};
        let timeConf = Object.assign({}, (_conf.timeModelConf ? (JSON.parse(_conf.timeModelConf) || {}) : {}));
        this.timeConfForm = timeConf;
        if (timeConf) {
          //{"TIME1_START_HOUR":9,"TIME1_START_MIN":30,"TIME1_OVER_HOUR":23,"TIME1_OVER_MIN":59,"TIME1_VALID":7,"TIME2_START_HOUR":0,"TIME2_START_MIN":0,"TIME2_OVER_HOUR":24,"TIME2_OVER_MIN":0,"TIME2_VALID":0,"TIME3_START_HOUR":0,"TIME3_START_MIN":0,"TIME3_OVER_HOUR":23,"TIME3_OVER_MIN":0,"TIME3_VALID":0,"TIME4_START_HOUR":0,"TIME4_START_MIN":0,"TIME5_OVER_HOUR":24,"TIME5_OVER_MIN":0,"TIME5_VALID":0,"TIME6_START_HOUR":0,"TIME6_START_MIN":0,"TIME6_OVER_HOUR":24,"TIME6_OVER_MIN":0,"TIME6_VALID":0,"TIME7_START_HOUR":0,"TIME7_START_MIN":0,"TIME7_OVER_HOUR":24,"TIME7_OVER_MIN":0,"TIME7_VALID":0,"TIME8_START_HOUR":0,"TIME8_START_MIN":0,"TIME8_OVER_HOUR":24,"TIME8_OVER_MIN":0,"TIME8_VALID":0}
          let _TIME1_START_HOUR = timeConf.TIME1_START_HOUR ? Number(timeConf.TIME1_START_HOUR) : 0,
            _TIME1_START_MIN = timeConf.TIME1_START_MIN ? Number(timeConf.TIME1_START_MIN) : 0,
            _TIME1_OVER_HOUR = timeConf.TIME1_OVER_HOUR ? Number(timeConf.TIME1_OVER_HOUR) : 0,
            _TIME1_OVER_MIN = timeConf.TIME1_OVER_MIN ? Number(timeConf.TIME1_OVER_MIN) : 0;
          this.paramForm.TIME1_START= dayjs( ((_TIME1_START_HOUR < 10 ? ("0" + _TIME1_START_HOUR) : _TIME1_START_HOUR) + ":" + (_TIME1_START_MIN < 10 ? ("0" + _TIME1_START_MIN) : _TIME1_START_MIN)), 'HH:mm');
          this.paramForm.TIME1_OVER = [_TIME1_OVER_HOUR, _TIME1_OVER_MIN];
          this.paramForm.TIME1_REGION_ARR = this.parse1248(timeConf.TIME1_REGION ? Number(timeConf.TIME1_REGION) : 0);
          this.timeConfForm.TIME1_VALID = timeConf.TIME1_VALID ? Number(timeConf.TIME1_VALID) : 0;
          this.timeConfForm.TIME1_TEMP1_RANGE_LOW = timeConf.TIME1_TEMP1_RANGE_LOW ? timeConf.TIME1_TEMP1_RANGE_LOW : '';
          this.timeConfForm.TIME1_TEMP1_RANGE_HIGH = timeConf.TIME1_TEMP1_RANGE_HIGH ? timeConf.TIME1_TEMP1_RANGE_HIGH : '';
          this.timeConfForm.TIME1_TEMP1_VALID = timeConf.TIME1_TEMP1_VALID ? Number(timeConf.TIME1_TEMP1_VALID) : 0;

          this.timeConfForm.TIME1_TEMP2_RANGE_LOW = timeConf.TIME1_TEMP2_RANGE_LOW ? timeConf.TIME1_TEMP2_RANGE_LOW : '';
          this.timeConfForm.TIME1_TEMP2_RANGE_HIGH = timeConf.TIME1_TEMP2_RANGE_HIGH ? timeConf.TIME1_TEMP2_RANGE_HIGH : '';
          this.timeConfForm.TIME1_TEMP2_VALID = timeConf.TIME1_TEMP2_VALID ? Number(timeConf.TIME1_TEMP2_VALID) : 0;

          this.timeConfForm.TIME1_TEMP3_RANGE_LOW = timeConf.TIME1_TEMP3_RANGE_LOW ? timeConf.TIME1_TEMP3_RANGE_LOW : '';
          this.timeConfForm.TIME1_TEMP3_RANGE_HIGH = timeConf.TIME1_TEMP3_RANGE_HIGH ? timeConf.TIME1_TEMP3_RANGE_HIGH : '';
          this.timeConfForm.TIME1_TEMP3_VALID = timeConf.TIME1_TEMP3_VALID ? Number(timeConf.TIME1_TEMP3_VALID) : 0;

          this.timeConfForm.TIME1_TEMP4_RANGE_LOW = timeConf.TIME1_TEMP4_RANGE_LOW ? timeConf.TIME1_TEMP4_RANGE_LOW : '';
          this.timeConfForm.TIME1_TEMP4_RANGE_HIGH = timeConf.TIME1_TEMP4_RANGE_HIGH ? timeConf.TIME1_TEMP4_RANGE_HIGH : '';
          this.timeConfForm.TIME1_TEMP4_VALID = timeConf.TIME1_TEMP4_VALID ? Number(timeConf.TIME1_TEMP4_VALID) : 0;



          let _TIME2_START_HOUR = timeConf.TIME2_START_HOUR ? Number(timeConf.TIME2_START_HOUR) : 0,
            _TIME2_START_MIN = timeConf.TIME2_START_MIN ? Number(timeConf.TIME2_START_MIN) : 0,
            _TIME2_OVER_HOUR = timeConf.TIME2_OVER_HOUR ? Number(timeConf.TIME2_OVER_HOUR) : 0,
            _TIME2_OVER_MIN = timeConf.TIME2_OVER_MIN ? Number(timeConf.TIME2_OVER_MIN) : 0;
          this.paramForm.TIME2_START = dayjs(((_TIME2_START_HOUR < 10 ? ("0" + _TIME2_START_HOUR) : _TIME2_START_HOUR) + ":" +  (_TIME2_START_MIN < 10 ? ("0" + _TIME2_START_MIN) : _TIME2_START_MIN)), 'HH:mm');
          this.paramForm.TIME2_OVER = [_TIME2_OVER_HOUR, _TIME2_OVER_MIN];
          this.paramForm.TIME2_REGION_ARR = this.parse1248(timeConf.TIME2_REGION ? Number(timeConf.TIME2_REGION) : 0);
          this.timeConfForm.TIME2_VALID = timeConf.TIME2_VALID ? Number(timeConf.TIME2_VALID) : 0;
          this.timeConfForm.TIME2_TEMP1_RANGE_LOW = timeConf.TIME2_TEMP1_RANGE_LOW ? timeConf.TIME2_TEMP1_RANGE_LOW : '';
          this.timeConfForm.TIME2_TEMP1_RANGE_HIGH = timeConf.TIME2_TEMP1_RANGE_HIGH ? timeConf.TIME2_TEMP1_RANGE_HIGH : '';
          this.timeConfForm.TIME2_TEMP1_VALID = timeConf.TIME2_TEMP1_VALID ? Number(timeConf.TIME2_TEMP1_VALID) : 0;

          this.timeConfForm.TIME2_TEMP2_RANGE_LOW = timeConf.TIME2_TEMP2_RANGE_LOW ? timeConf.TIME2_TEMP2_RANGE_LOW : '';
          this.timeConfForm.TIME2_TEMP2_RANGE_HIGH = timeConf.TIME2_TEMP2_RANGE_HIGH ? timeConf.TIME2_TEMP2_RANGE_HIGH : '';
          this.timeConfForm.TIME2_TEMP2_VALID = timeConf.TIME2_TEMP2_VALID ? Number(timeConf.TIME2_TEMP2_VALID) : 0;

          this.timeConfForm.TIME2_TEMP3_RANGE_LOW = timeConf.TIME2_TEMP3_RANGE_LOW ? timeConf.TIME2_TEMP3_RANGE_LOW : '';
          this.timeConfForm.TIME2_TEMP3_RANGE_HIGH = timeConf.TIME2_TEMP3_RANGE_HIGH ? timeConf.TIME2_TEMP3_RANGE_HIGH : '';
          this.timeConfForm.TIME2_TEMP3_VALID = timeConf.TIME2_TEMP3_VALID ? Number(timeConf.TIME2_TEMP3_VALID) : 0;

          this.timeConfForm.TIME2_TEMP4_RANGE_LOW = timeConf.TIME2_TEMP4_RANGE_LOW ? timeConf.TIME2_TEMP4_RANGE_LOW : '';
          this.timeConfForm.TIME2_TEMP4_RANGE_HIGH = timeConf.TIME2_TEMP4_RANGE_HIGH ? timeConf.TIME2_TEMP4_RANGE_HIGH : '';
          this.timeConfForm.TIME2_TEMP4_VALID = timeConf.TIME2_TEMP4_VALID ? Number(timeConf.TIME2_TEMP4_VALID) : 0;

          let _TIME3_START_HOUR = timeConf.TIME3_START_HOUR ? Number(timeConf.TIME3_START_HOUR) : 0,
            _TIME3_START_MIN = timeConf.TIME3_START_MIN ? Number(timeConf.TIME3_START_MIN) : 0,
            _TIME3_OVER_HOUR = timeConf.TIME3_OVER_HOUR ? Number(timeConf.TIME3_OVER_HOUR) : 0,
            _TIME3_OVER_MIN= timeConf.TIME3_OVER_MIN ? Number(timeConf.TIME3_OVER_MIN) : 0;
          this.paramForm.TIME3_START = dayjs(((_TIME3_START_HOUR < 10 ? ("0" + _TIME3_START_HOUR) : _TIME3_START_HOUR) + ":" +  (_TIME3_START_MIN < 10 ? ("0" + _TIME3_START_MIN) : _TIME3_START_MIN)), 'HH:mm');
          this.paramForm.TIME3_OVER = [_TIME3_OVER_HOUR, _TIME3_OVER_MIN];
          this.paramForm.TIME3_REGION_ARR = this.parse1248(timeConf.TIME3_REGION ? Number(timeConf.TIME3_REGION) : 0);
          this.timeConfForm.TIME3_VALID = timeConf.TIME3_VALID ? Number(timeConf.TIME3_VALID) : 0;
          this.timeConfForm.TIME3_TEMP1_RANGE_LOW = timeConf.TIME3_TEMP1_RANGE_LOW ? timeConf.TIME3_TEMP1_RANGE_LOW : '';
          this.timeConfForm.TIME3_TEMP1_RANGE_HIGH = timeConf.TIME3_TEMP1_RANGE_HIGH ? timeConf.TIME3_TEMP1_RANGE_HIGH : '';
          this.timeConfForm.TIME3_TEMP1_VALID = timeConf.TIME3_TEMP1_VALID ? Number(timeConf.TIME3_TEMP1_VALID) : 0;

          this.timeConfForm.TIME3_TEMP2_RANGE_LOW = timeConf.TIME3_TEMP2_RANGE_LOW ? timeConf.TIME3_TEMP2_RANGE_LOW : '';
          this.timeConfForm.TIME3_TEMP2_RANGE_HIGH = timeConf.TIME3_TEMP2_RANGE_HIGH ? timeConf.TIME3_TEMP2_RANGE_HIGH : '';
          this.timeConfForm.TIME3_TEMP2_VALID = timeConf.TIME3_TEMP2_VALID ? Number(timeConf.TIME3_TEMP2_VALID) : 0;

          this.timeConfForm.TIME3_TEMP3_RANGE_LOW = timeConf.TIME3_TEMP3_RANGE_LOW ? timeConf.TIME3_TEMP3_RANGE_LOW : '';
          this.timeConfForm.TIME3_TEMP3_RANGE_HIGH = timeConf.TIME3_TEMP3_RANGE_HIGH ? timeConf.TIME3_TEMP3_RANGE_HIGH : '';
          this.timeConfForm.TIME3_TEMP3_VALID = timeConf.TIME3_TEMP3_VALID ? Number(timeConf.TIME3_TEMP3_VALID) : 0;

          this.timeConfForm.TIME3_TEMP4_RANGE_LOW = timeConf.TIME3_TEMP4_RANGE_LOW ? timeConf.TIME3_TEMP4_RANGE_LOW : '';
          this.timeConfForm.TIME3_TEMP4_RANGE_HIGH = timeConf.TIME3_TEMP4_RANGE_HIGH ? timeConf.TIME3_TEMP4_RANGE_HIGH : '';
          this.timeConfForm.TIME3_TEMP4_VALID = timeConf.TIME3_TEMP4_VALID ? Number(timeConf.TIME3_TEMP4_VALID) : 0;


          let _TIME4_START_HOUR = timeConf.TIME4_START_HOUR ? Number(timeConf.TIME4_START_HOUR) : 0,
            _TIME4_START_MIN = timeConf.TIME4_START_MIN ? Number(timeConf.TIME4_START_MIN) : 0,
            _TIME4_OVER_HOUR = timeConf.TIME4_OVER_HOUR ? Number(timeConf.TIME4_OVER_HOUR) : 0,
            _TIME4_OVER_MIN = timeConf.TIME4_OVER_MIN ? Number(timeConf.TIME4_OVER_MIN) : 0;
          this.paramForm.TIME4_START = dayjs(((_TIME4_START_HOUR < 10 ? ("0" + _TIME4_START_HOUR) : _TIME4_START_HOUR) + ":" +  (_TIME4_START_MIN < 10 ? ("0" + _TIME4_START_MIN) : _TIME4_START_MIN)), 'HH:mm');
          this.paramForm.TIME4_OVER = [_TIME4_OVER_HOUR,_TIME4_OVER_MIN ];
          this.paramForm.TIME4_REGION_ARR = this.parse1248(timeConf.TIME4_REGION ? Number(timeConf.TIME4_REGION) : 0);
          this.timeConfForm.TIME4_VALID = timeConf.TIME4_VALID ? Number(timeConf.TIME4_VALID) : 0;
          this.timeConfForm.TIME4_TEMP1_RANGE_LOW = timeConf.TIME4_TEMP1_RANGE_LOW ? timeConf.TIME4_TEMP1_RANGE_LOW : '';
          this.timeConfForm.TIME4_TEMP1_RANGE_HIGH = timeConf.TIME4_TEMP1_RANGE_HIGH ? timeConf.TIME4_TEMP1_RANGE_HIGH : '';
          this.timeConfForm.TIME4_TEMP1_VALID = timeConf.TIME4_TEMP1_VALID ? Number(timeConf.TIME4_TEMP1_VALID) : 0;

          this.timeConfForm.TIME4_TEMP2_RANGE_LOW = timeConf.TIME4_TEMP2_RANGE_LOW ? timeConf.TIME4_TEMP2_RANGE_LOW : '';
          this.timeConfForm.TIME4_TEMP2_RANGE_HIGH = timeConf.TIME4_TEMP2_RANGE_HIGH ? timeConf.TIME4_TEMP2_RANGE_HIGH : '';
          this.timeConfForm.TIME4_TEMP2_VALID = timeConf.TIME4_TEMP2_VALID ? Number(timeConf.TIME4_TEMP2_VALID) : 0;

          this.timeConfForm.TIME4_TEMP3_RANGE_LOW = timeConf.TIME4_TEMP3_RANGE_LOW ? timeConf.TIME4_TEMP3_RANGE_LOW : '';
          this.timeConfForm.TIME4_TEMP3_RANGE_HIGH = timeConf.TIME4_TEMP3_RANGE_HIGH ? timeConf.TIME4_TEMP3_RANGE_HIGH : '';
          this.timeConfForm.TIME4_TEMP3_VALID = timeConf.TIME4_TEMP3_VALID ? Number(timeConf.TIME4_TEMP3_VALID) : 0;

          this.timeConfForm.TIME4_TEMP4_RANGE_LOW = timeConf.TIME4_TEMP4_RANGE_LOW ? timeConf.TIME4_TEMP4_RANGE_LOW : '';
          this.timeConfForm.TIME4_TEMP4_RANGE_HIGH = timeConf.TIME4_TEMP4_RANGE_HIGH ? timeConf.TIME4_TEMP4_RANGE_HIGH : '';
          this.timeConfForm.TIME4_TEMP4_VALID = timeConf.TIME4_TEMP4_VALID ? Number(timeConf.TIME4_TEMP4_VALID) : 0;

          let _TIME5_START_HOUR = timeConf.TIME5_START_HOUR ? Number(timeConf.TIME5_START_HOUR) : 0,
            _TIME5_START_MIN = timeConf.TIME5_START_MIN ? Number(timeConf.TIME5_START_MIN) : 0,
            _TIME5_OVER_HOUR = timeConf.TIME5_OVER_HOUR ? Number(timeConf.TIME5_OVER_HOUR) : 0,
            _TIME5_OVER_MIN = timeConf.TIME5_OVER_MIN ? Number(timeConf.TIME5_OVER_MIN) : 0;
          this.paramForm.TIME5_START = dayjs(((_TIME5_START_HOUR < 10 ? ("0" + _TIME5_START_HOUR) : _TIME5_START_HOUR) + ":" +  (_TIME5_START_MIN < 10 ? ("0" + _TIME5_START_MIN) : _TIME5_START_MIN)), 'HH:mm');
          this.paramForm.TIME5_OVER = [_TIME5_OVER_HOUR, _TIME5_OVER_MIN];
          this.paramForm.TIME5_REGION_ARR = this.parse1248(timeConf.TIME5_REGION ? Number(timeConf.TIME5_REGION) : 0);
          this.timeConfForm.TIME5_VALID = timeConf.TIME5_VALID ? Number(timeConf.TIME5_VALID) : 0;
          this.timeConfForm.TIME5_TEMP1_RANGE_LOW = timeConf.TIME5_TEMP1_RANGE_LOW ? timeConf.TIME5_TEMP1_RANGE_LOW : '';
          this.timeConfForm.TIME5_TEMP1_RANGE_HIGH = timeConf.TIME5_TEMP1_RANGE_HIGH ? timeConf.TIME5_TEMP1_RANGE_HIGH : '';
          this.timeConfForm.TIME5_TEMP1_VALID = timeConf.TIME5_TEMP1_VALID ? Number(timeConf.TIME5_TEMP1_VALID) : 0;

          this.timeConfForm.TIME5_TEMP2_RANGE_LOW = timeConf.TIME5_TEMP2_RANGE_LOW ? timeConf.TIME5_TEMP2_RANGE_LOW : '';
          this.timeConfForm.TIME5_TEMP2_RANGE_HIGH = timeConf.TIME5_TEMP2_RANGE_HIGH ? timeConf.TIME5_TEMP2_RANGE_HIGH : '';
          this.timeConfForm.TIME5_TEMP2_VALID = timeConf.TIME5_TEMP2_VALID ? Number(timeConf.TIME5_TEMP2_VALID) : 0;

          this.timeConfForm.TIME5_TEMP3_RANGE_LOW = timeConf.TIME5_TEMP3_RANGE_LOW ? timeConf.TIME5_TEMP3_RANGE_LOW : '';
          this.timeConfForm.TIME5_TEMP3_RANGE_HIGH = timeConf.TIME5_TEMP3_RANGE_HIGH ? timeConf.TIME5_TEMP3_RANGE_HIGH : '';
          this.timeConfForm.TIME5_TEMP3_VALID = timeConf.TIME5_TEMP3_VALID ? Number(timeConf.TIME5_TEMP3_VALID) : 0;

          this.timeConfForm.TIME5_TEMP4_RANGE_LOW = timeConf.TIME5_TEMP4_RANGE_LOW ? timeConf.TIME5_TEMP4_RANGE_LOW : '';
          this.timeConfForm.TIME5_TEMP4_RANGE_HIGH = timeConf.TIME5_TEMP4_RANGE_HIGH ? timeConf.TIME5_TEMP4_RANGE_HIGH : '';
          this.timeConfForm.TIME5_TEMP4_VALID = timeConf.TIME5_TEMP4_VALID ? Number(timeConf.TIME5_TEMP4_VALID) : 0;

          let _TIME6_START_HOUR = timeConf.TIME6_START_HOUR ? Number(timeConf.TIME6_START_HOUR) : 0,
            _TIME6_START_MIN = timeConf.TIME6_START_MIN ? Number(timeConf.TIME6_START_MIN) : 0,
            _TIME6_OVER_HOUR = timeConf.TIME6_OVER_HOUR ? Number(timeConf.TIME6_OVER_HOUR) : 0,
            _TIME6_OVER_MIN = timeConf.TIME6_OVER_MIN ? Number(timeConf.TIME6_OVER_MIN) : 0;
          this.paramForm.TIME6_START = dayjs(((_TIME6_START_HOUR < 10 ? ("0" +_TIME6_START_HOUR) : _TIME6_START_HOUR) + ":" +  (_TIME6_START_MIN < 10 ? ("0" + _TIME6_START_MIN) : _TIME6_START_MIN)), 'HH:mm');
          this.paramForm.TIME6_OVER = [_TIME6_OVER_HOUR, _TIME6_OVER_MIN];
          this.paramForm.TIME6_REGION_ARR = this.parse1248(timeConf.TIME6_REGION ? Number(timeConf.TIME6_REGION) : 0);
          this.timeConfForm.TIME6_VALID = timeConf.TIME6_VALID ? Number(timeConf.TIME6_VALID) : 0;
          this.timeConfForm.TIME6_TEMP1_RANGE_LOW = timeConf.TIME6_TEMP1_RANGE_LOW ? timeConf.TIME6_TEMP1_RANGE_LOW : '';
          this.timeConfForm.TIME6_TEMP1_RANGE_HIGH = timeConf.TIME6_TEMP1_RANGE_HIGH ? timeConf.TIME6_TEMP1_RANGE_HIGH : '';
          this.timeConfForm.TIME6_TEMP1_VALID = timeConf.TIME6_TEMP1_VALID ? Number(timeConf.TIME6_TEMP1_VALID) : 0;

          this.timeConfForm.TIME6_TEMP2_RANGE_LOW = timeConf.TIME6_TEMP2_RANGE_LOW ? timeConf.TIME6_TEMP2_RANGE_LOW : '';
          this.timeConfForm.TIME6_TEMP2_RANGE_HIGH = timeConf.TIME6_TEMP2_RANGE_HIGH ? timeConf.TIME6_TEMP2_RANGE_HIGH : '';
          this.timeConfForm.TIME6_TEMP2_VALID = timeConf.TIME6_TEMP2_VALID ? Number(timeConf.TIME6_TEMP2_VALID) : 0;

          this.timeConfForm.TIME6_TEMP3_RANGE_LOW = timeConf.TIME6_TEMP3_RANGE_LOW ? timeConf.TIME6_TEMP3_RANGE_LOW : '';
          this.timeConfForm.TIME6_TEMP3_RANGE_HIGH = timeConf.TIME6_TEMP3_RANGE_HIGH ? timeConf.TIME6_TEMP3_RANGE_HIGH : '';
          this.timeConfForm.TIME6_TEMP3_VALID = timeConf.TIME6_TEMP3_VALID ? Number(timeConf.TIME6_TEMP3_VALID) : 0;

          this.timeConfForm.TIME6_TEMP4_RANGE_LOW = timeConf.TIME6_TEMP4_RANGE_LOW ? timeConf.TIME6_TEMP4_RANGE_LOW : '';
          this.timeConfForm.TIME6_TEMP4_RANGE_HIGH = timeConf.TIME6_TEMP4_RANGE_HIGH ? timeConf.TIME6_TEMP4_RANGE_HIGH : '';
          this.timeConfForm.TIME6_TEMP4_VALID = timeConf.TIME6_TEMP4_VALID ? Number(timeConf.TIME6_TEMP4_VALID) : 0;

          let _TIME7_START_HOUR = timeConf.TIME7_START_HOUR ? Number(timeConf.TIME7_START_HOUR) : 0,
            _TIME7_START_MIN = timeConf.TIME7_START_MIN ? Number(timeConf.TIME7_START_MIN) : 0,
            _TIME7_OVER_HOUR = timeConf.TIME7_OVER_HOUR ? Number(timeConf.TIME7_OVER_HOUR) : 0,
            _TIME7_OVER_MIN = timeConf.TIME7_OVER_MIN ? Number(timeConf.TIME7_OVER_MIN) : 0;
          this.paramForm.TIME7_START = dayjs(((_TIME7_START_HOUR < 10 ? ("0" + _TIME7_START_HOUR) : _TIME7_START_HOUR) + ":" +  (_TIME7_START_MIN < 10 ? ("0" + _TIME7_START_MIN) : _TIME7_START_MIN)), 'HH:mm');
          this.paramForm.TIME7_OVER = [_TIME7_OVER_HOUR, _TIME7_OVER_MIN];
          this.paramForm.TIME7_REGION_ARR = this.parse1248(timeConf.TIME7_REGION ? Number(timeConf.TIME7_REGION) : 0);
          this.timeConfForm.TIME7_VALID = timeConf.TIME7_VALID ? Number(timeConf.TIME7_VALID) : 0;
          this.timeConfForm.TIME7_TEMP1_RANGE_LOW = timeConf.TIME7_TEMP1_RANGE_LOW ? timeConf.TIME7_TEMP1_RANGE_LOW : '';
          this.timeConfForm.TIME7_TEMP1_RANGE_HIGH = timeConf.TIME7_TEMP1_RANGE_HIGH ? timeConf.TIME7_TEMP1_RANGE_HIGH : '';
          this.timeConfForm.TIME7_TEMP1_VALID = timeConf.TIME7_TEMP1_VALID ? Number(timeConf.TIME7_TEMP1_VALID) : 0;

          this.timeConfForm.TIME7_TEMP2_RANGE_LOW = timeConf.TIME7_TEMP2_RANGE_LOW ? timeConf.TIME7_TEMP2_RANGE_LOW : '';
          this.timeConfForm.TIME7_TEMP2_RANGE_HIGH = timeConf.TIME7_TEMP2_RANGE_HIGH ? timeConf.TIME7_TEMP2_RANGE_HIGH : '';
          this.timeConfForm.TIME7_TEMP2_VALID = timeConf.TIME7_TEMP2_VALID ? Number(timeConf.TIME7_TEMP2_VALID) : 0;

          this.timeConfForm.TIME7_TEMP3_RANGE_LOW = timeConf.TIME7_TEMP3_RANGE_LOW ? timeConf.TIME7_TEMP3_RANGE_LOW : '';
          this.timeConfForm.TIME7_TEMP3_RANGE_HIGH = timeConf.TIME7_TEMP3_RANGE_HIGH ? timeConf.TIME7_TEMP3_RANGE_HIGH : '';
          this.timeConfForm.TIME7_TEMP3_VALID = timeConf.TIME7_TEMP3_VALID ? Number(timeConf.TIME7_TEMP3_VALID) : 0;

          this.timeConfForm.TIME7_TEMP4_RANGE_LOW = timeConf.TIME7_TEMP4_RANGE_LOW ? timeConf.TIME7_TEMP4_RANGE_LOW : '';
          this.timeConfForm.TIME7_TEMP4_RANGE_HIGH = timeConf.TIME7_TEMP4_RANGE_HIGH ? timeConf.TIME7_TEMP4_RANGE_HIGH : '';
          this.timeConfForm.TIME7_TEMP4_VALID = timeConf.TIME7_TEMP4_VALID ? Number(timeConf.TIME7_TEMP4_VALID) : 0;

          let _TIME8_START_HOUR = timeConf.TIME8_START_HOUR ? Number(timeConf.TIME8_START_HOUR) : 0,
            _TIME8_START_MIN = timeConf.TIME8_START_MIN ? Number(timeConf.TIME8_START_MIN) : 0,
            _TIME8_OVER_HOUR = timeConf.TIME8_OVER_HOUR ? Number(timeConf.TIME8_OVER_HOUR) : 0,
            _TIME8_OVER_MIN = timeConf.TIME8_OVER_MIN ? Number(timeConf.TIME8_OVER_MIN) : 0;
          this.paramForm.TIME8_START = dayjs(((_TIME8_START_HOUR < 10 ? ("0" + _TIME8_START_HOUR) : _TIME8_START_HOUR) + ":" +  (_TIME8_START_MIN < 10 ? ("0" + _TIME8_START_MIN) : _TIME8_START_MIN)), 'HH:mm');
          this.paramForm.TIME8_OVER = [_TIME8_OVER_HOUR, _TIME8_OVER_MIN];
          this.paramForm.TIME8_REGION_ARR = this.parse1248(timeConf.TIME8_REGION ? Number(timeConf.TIME8_REGION) : 0);
          this.timeConfForm.TIME8_VALID = timeConf.TIME8_VALID ? Number(timeConf.TIME8_VALID) : 0;
          this.timeConfForm.TIME8_TEMP1_RANGE_LOW = timeConf.TIME8_TEMP1_RANGE_LOW ? timeConf.TIME8_TEMP1_RANGE_LOW : '';
          this.timeConfForm.TIME8_TEMP1_RANGE_HIGH = timeConf.TIME8_TEMP1_RANGE_HIGH ? timeConf.TIME8_TEMP1_RANGE_HIGH : '';
          this.timeConfForm.TIME8_TEMP1_VALID = timeConf.TIME8_TEMP1_VALID ? Number(timeConf.TIME8_TEMP1_VALID) : 0;

          this.timeConfForm.TIME8_TEMP2_RANGE_LOW = timeConf.TIME8_TEMP2_RANGE_LOW ? timeConf.TIME8_TEMP2_RANGE_LOW : '';
          this.timeConfForm.TIME8_TEMP2_RANGE_HIGH = timeConf.TIME8_TEMP2_RANGE_HIGH ? timeConf.TIME8_TEMP2_RANGE_HIGH : '';
          this.timeConfForm.TIME8_TEMP2_VALID = timeConf.TIME8_TEMP2_VALID ? Number(timeConf.TIME8_TEMP2_VALID) : 0;

          this.timeConfForm.TIME8_TEMP3_RANGE_LOW = timeConf.TIME8_TEMP3_RANGE_LOW ? timeConf.TIME8_TEMP3_RANGE_LOW : '';
          this.timeConfForm.TIME8_TEMP3_RANGE_HIGH = timeConf.TIME8_TEMP3_RANGE_HIGH ? timeConf.TIME8_TEMP3_RANGE_HIGH : '';
          this.timeConfForm.TIME8_TEMP3_VALID = timeConf.TIME8_TEMP3_VALID ? Number(timeConf.TIME8_TEMP3_VALID) : 0;

          this.timeConfForm.TIME8_TEMP4_RANGE_LOW = timeConf.TIME8_TEMP4_RANGE_LOW ? timeConf.TIME8_TEMP4_RANGE_LOW : '';
          this.timeConfForm.TIME8_TEMP4_RANGE_HIGH = timeConf.TIME8_TEMP4_RANGE_HIGH ? timeConf.TIME8_TEMP4_RANGE_HIGH : '';
          this.timeConfForm.TIME8_TEMP4_VALID = timeConf.TIME8_TEMP4_VALID ? Number(timeConf.TIME8_TEMP4_VALID) : 0;
        }
        this.paramForm.switch.masterSwitchCheck = (_conf.masterSwitch == 1) ? true : false;
        this.paramForm.switch.fanHandSwitchCheck = (_conf.fanHandSwitch == 1) ? true : false;
        this.paramForm.switch.debugModelCheck = (_conf.debugModel == 1) ? true : false;
        this.paramForm.switch.cotwoSwitchCheck = (_conf.cotwoSwitch == 1) ? true : false;
        this.paramForm.switch.nhthreeSwitchCheck = (_conf.nhthreeSwitch == 1) ? true : false;
        this.paramForm.switch.htwosSwitchCheck = (_conf.htwosSwitch == 1) ? true : false;
        this.paramForm.switch.methaneSwitchCheck = (_conf.methaneSwitch == 1) ? true : false;
      }
    },
    masterSwitchChange(checked) {
      console.log(checked);
      this.paramForm.switch.masterSwitchCheck = checked;
    },
    fanHandSwitchChange(checked) {
      this.paramForm.switch.fanHandSwitchCheck = checked;
    },
    debugModelChange(checked) {
      this.paramForm.switch.debugModelCheck = checked;
    },
    cotwoSwitchChange(checked) {
      this.paramForm.switch.cotwoSwitchCheck = checked;
    },
    nhthreeSwitchChange(checked) {
      this.paramForm.switch.nhthreeSwitchCheck = checked;
    },
    htwosSwitchChange(checked) {
      this.paramForm.switch.htwosSwitchCheck = checked;
    },
    methaneSwitchChange(checked) {
      this.paramForm.switch.methaneSwitchCheck = checked;
    },
    selectTime1Start(time) {
      this.timeConfForm.TIME1_START_HOUR = time.hour();
      this.timeConfForm.TIME1_START_MIN = time.minute();
    },
    selectTime2Start(time) {
      this.timeConfForm.TIME2_START_HOUR = time.hour();
      this.timeConfForm.TIME2_START_MIN = time.minute();
    },
    selectTime3Start(time) {
      this.timeConfForm.TIME3_START_HOUR = time.hour();
      this.timeConfForm.TIME3_START_MIN = time.minute();
    },
    selectTime4Start(time) {
      this.timeConfForm.TIME4_START_HOUR = time.hour();
      this.timeConfForm.TIME4_START_MIN = time.minute();
    },
    selectTime5Start(time) {
      this.timeConfForm.TIME5_START_HOUR = time.hour();
      this.timeConfForm.TIME5_START_MIN = time.minute();
    },
    selectTime6Start(time) {
      this.timeConfForm.TIME6_START_HOUR = time.hour();
      this.timeConfForm.TIME6_START_MIN = time.minute();
    },
    selectTime7Start(time) {
      this.timeConfForm.TIME7_START_HOUR = time.hour();
      this.timeConfForm.TIME7_START_MIN = time.minute();
    },
    selectTime8Start(time) {
      this.timeConfForm.TIME8_START_HOUR = time.hour();
      this.timeConfForm.TIME8_START_MIN = time.minute();
    },
    selectTime1Over(time) {
      this.paramForm.TIME1_OVER = time;
      if (time) {
        this.timeConfForm.TIME1_OVER_HOUR = time[0];
        this.timeConfForm.TIME1_OVER_MIN = time[1];
      }
    },
    selectTime2Over(time) {
      this.paramForm.TIME2_OVER = time;
      if (time) {
        this.timeConfForm.TIME2_OVER_HOUR = time[0];
        this.timeConfForm.TIME2_OVER_MIN = time[1];
      }
    },
    selectTime3Over(time) {
      this.paramForm.TIME3_OVER = time;
      if (time) {
        this.timeConfForm.TIME3_OVER_HOUR = time[0];
        this.timeConfForm.TIME3_OVER_MIN = time[1];
      }
    },
    selectTime4Over(time) {
      this.paramForm.TIME4_OVER = time;
      if (time) {
        this.timeConfForm.TIME4_OVER_HOUR = time[0];
        this.timeConfForm.TIME4_OVER_MIN = time[1];
      }
    },
    selectTime5Over(time) {
      this.paramForm.TIME5_OVER = time;
      if (time) {
        this.timeConfForm.TIME5_OVER_HOUR = time[0];
        this.timeConfForm.TIME5_OVER_MIN = time[1];
      }
    },
    selectTime6Over(time) {
      this.paramForm.TIME6_OVER = time;
      if (time) {
        this.timeConfForm.TIME6_OVER_HOUR = time[0];
        this.timeConfForm.TIME6_OVER_MIN = time[1];
      }
    },
    selectTime7Over(time) {
      this.paramForm.TIME7_OVER = time;
      if (time) {
        this.timeConfForm.TIME7_OVER_HOUR = time[0];
        this.timeConfForm.TIME7_OVER_MIN = time[1];
      }
    },
    selectTime8Over(time) {
      this.paramForm.TIME8_OVER = time;
      if (time) {
        this.timeConfForm.TIME8_OVER_HOUR = time[0];
        this.timeConfForm.TIME8_OVER_MIN = time[1];
      }
    },
    time1RegionChange(value) {
      if (!value || value.length == 0) {
        this.timeConfForm.TIME1_REGION = 0;
      } else {
        let zong = 0;
        for (let i = 0; i < value.length; i++) {
          zong = value[i] + zong;
        }
        this.timeConfForm.TIME1_REGION = zong;
      }
    },
    time2RegionChange(value) {
      if (!value || value.length == 0) {
        this.timeConfForm.TIME2_REGION = 0;
      } else {
        let zong = 0;
        for (let i = 0; i < value.length; i++) {
          zong = value[i] + zong;
        }
        this.timeConfForm.TIME2_REGION = zong;
      }
    },
    time3RegionChange(value) {
      if (!value || value.length == 0) {
        this.timeConfForm.TIME3_REGION = 0;
      } else {
        let zong = 0;
        for (let i = 0; i < value.length; i++) {
          zong = value[i] + zong;
        }
        this.timeConfForm.TIME3_REGION = zong;
      }
    },
    time4RegionChange(value) {
      if (!value || value.length == 0) {
        this.timeConfForm.TIME4_REGION = 0;
      } else {
        let zong = 0;
        for (let i = 0; i < value.length; i++) {
          zong = value[i] + zong;
        }
        this.timeConfForm.TIME4_REGION = zong;
      }
    },
    time5RegionChange(value) {
      if (!value || value.length == 0) {
        this.timeConfForm.TIME5_REGION = 0;
      } else {
        let zong = 0;
        for (let i = 0; i < value.length; i++) {
          zong = value[i] + zong;
        }
        this.timeConfForm.TIME5_REGION = zong;
      }
    },
    time6RegionChange(value) {
      if (!value || value.length == 0) {
        this.timeConfForm.TIME6_REGION = 0;
      } else {
        let zong = 0;
        for (let i = 0; i < value.length; i++) {
          zong = value[i] + zong;
        }
        this.timeConfForm.TIME6_REGION = zong;
      }
    },
    time7RegionChange(value) {
      if (!value || value.length == 0) {
        this.timeConfForm.TIME7_REGION = 0;
      } else {
        let zong = 0;
        for (let i = 0; i < value.length; i++) {
          zong = value[i] + zong;
        }
        this.timeConfForm.TIME7_REGION = zong;
      }
    },
    time8RegionChange(value) {
      if (!value || value.length == 0) {
        this.timeConfForm.TIME8_REGION = 0;
      } else {
        let zong = 0;
        for (let i = 0; i < value.length; i++) {
          zong = value[i] + zong;
        }
        this.timeConfForm.TIME8_REGION = zong;
      }
    },
    /**
     * 保存和编辑
     * 写到队列，队列发送完回写到原配置
     * @author cancan
     * @date 2022/03/04 21:15
     */
    save() {
      this.form.fanHandSwitch = this.paramForm.switch.fanHandSwitchCheck ? 1 : 2;
      this.form.debugModel = this.paramForm.switch.debugModelCheck ? 1 : 2;
      this.form.cotwoSwitch = this.paramForm.switch.cotwoSwitchCheck ? 1 : 2;
      this.form.nhthreeSwitch = this.paramForm.switch.nhthreeSwitchCheck ? 1 : 2;
      this.form.htwosSwitch = this.paramForm.switch.htwosSwitchCheck ? 1 : 2;
      this.form.methaneSwitch = this.paramForm.switch.methaneSwitchCheck ? 1 : 2;

      if ((this.form.tempAlarmHigh != 0 && this.form.tempAlarmLow != 0) && this.form.tempAlarmHigh <= this.form.tempAlarmLow) {
        message.error('温度报警上限要大于下限，请重新输入');
        return;
      }

      if ((this.form.humAlarmHigh != 0 && this.form.humAlarmLow != 0) && this.form.humAlarmHigh <= this.form.humAlarmLow) {
        message.error('湿度报警上限要大于下限，请重新输入');
        return;
      }

      if ((this.form.methaneAlarmHigh != 0 && this.form.methaneAlarmLow != 0) && this.form.methaneAlarmHigh <= this.form.methaneAlarmLow) {
        message.error('甲烷报警上限要大于下限，请重新输入');
        return;
      }

      if ((this.form.cotwoHigh != 0 && this.form.cotwoLow != 0) && this.form.cotwoHigh <= this.form.cotwoLow) {
        message.error('CO2报警上限要大于下限，请重新输入');
        return;
      }

      if ((this.form.nhthreeHigh != 0 && this.form.nhthreeLow != 0) && this.form.nhthreeHigh <= this.form.nhthreeLow) {
        message.error('NH3报警上限要大于下限，请重新输入');
        return;
      }

      if ((this.form.htwosHigh !=0 && this.form.htwosLow !=0) && this.form.htwosHigh <= this.form.htwosLow) {
        message.error('H2S报警上限要大于下限，请重新输入');
        return;
      }

      if (this.form.templateCodeType == 3 && (this.form.super3OpenTemp != 0 && this.form.super3CloseTemp != 0) && this.form.super3OpenTemp <= this.form.super3CloseTemp) {
        message.error('超级模式3开启的温度要大于超级模式2关闭温度，请重新输入');
        return;
      }

      //将"结束时间"00：00转为24点吧。this.timeConfForm.TIME6_OVER_HOUR结束
      let timeModelConf = this.timeConfForm;
      if (!this.timeConfForm.TIME1_REGION) {
        message.error('时间段一必须选择区域');
        return;
      }
      if (!this.timeConfForm.TIME2_REGION) {
        message.error('时间段二必须选择区域');
        return;
      }
      if (!this.timeConfForm.TIME3_REGION) {
        message.error('时间段三必须选择区域');
        return;
      }
      if (!this.timeConfForm.TIME4_REGION) {
        message.error('时间段四必须选择区域');
        return;
      }
      if (!this.timeConfForm.TIME5_REGION) {
        message.error('时间段五必须选择区域');
        return;
      }
      if (!this.timeConfForm.TIME6_REGION) {
        message.error('时间段六必须选择区域');
        return;
      }
      if (!this.timeConfForm.TIME7_REGION) {
        message.error('时间段七必须选择区域');
        return;
      }
      if (!this.timeConfForm.TIME8_REGION) {
        message.error('时间段八必须选择区域');
        return;
      }

      if ((this.timeConfForm.TIME1_START_HOUR * 100 + this.timeConfForm.TIME1_START_MIN) > (this.timeConfForm.TIME1_OVER_HOUR * 100 + this.timeConfForm.TIME1_OVER_MIN)) {
        message.error('时间段一开始时间应小于结束时间，请重新输入');
        return;
      }
      if ((this.timeConfForm.TIME2_START_HOUR * 100 + this.timeConfForm.TIME2_START_MIN) > (this.timeConfForm.TIME2_OVER_HOUR * 100 + this.timeConfForm.TIME2_OVER_MIN)) {
        message.error('时间段二开始时间应小于结束时间，请重新输入');
        return;
      }
      if ((this.timeConfForm.TIME3_START_HOUR * 100 + this.timeConfForm.TIME3_START_MIN) > (this.timeConfForm.TIME3_OVER_HOUR * 100 + this.timeConfForm.TIME3_OVER_MIN)) {
        message.error('时间段三开始时间应小于结束时间，请重新输入');
        return;
      }
      if ((this.timeConfForm.TIME4_START_HOUR * 100 + this.timeConfForm.TIME4_START_MIN) > (this.timeConfForm.TIME4_OVER_HOUR * 100 + this.timeConfForm.TIME4_OVER_MIN)) {
        message.error('时间段四开始时间应小于结束时间，请重新输入');
        return;
      }
      if ((this.timeConfForm.TIME5_START_HOUR * 100 + this.timeConfForm.TIME5_START_MIN) > (this.timeConfForm.TIME5_OVER_HOUR * 100 + this.timeConfForm.TIME5_OVER_MIN)) {
        message.error('时间段五开始时间应小于结束时间，请重新输入');
        return;
      }
      if ((this.timeConfForm.TIME6_START_HOUR * 100 + this.timeConfForm.TIME6_START_MIN) > (this.timeConfForm.TIME6_OVER_HOUR * 100 + this.timeConfForm.TIME6_OVER_MIN)) {
        message.error('时间段六开始时间应小于结束时间，请重新输入');
        return;
      }
      if ((this.timeConfForm.TIME7_START_HOUR * 100 + this.timeConfForm.TIME7_START_MIN) > (this.timeConfForm.TIME7_OVER_HOUR * 100 + this.timeConfForm.TIME7_OVER_MIN)) {
        message.error('时间段七开始时间应小于结束时间，请重新输入');
        return;
      }
      if ((this.timeConfForm.TIME8_START_HOUR * 100 + this.timeConfForm.TIME8_START_MIN) > (this.timeConfForm.TIME8_OVER_HOUR * 100 + this.timeConfForm.TIME8_OVER_MIN)) {
        message.error('时间段八开始时间应小于结束时间，请重新输入');
        return;
      }

      this.form.timeModelConf = JSON.stringify(timeModelConf);
      this.form.sprayModelData = JSON.stringify(this.paramForm.sprayModelData);
      console.log(this.form);
      // 校验表单
      //await this.$refs.form.validate();
      // 修改加载框为正在加载
      this.loading = true;
      let result = null;
      // 执行编辑或修改
      if (this.isUpdate) {
        result = DeviceSprayConfigTemplateApi.edit(this.form);
      } else {
        result = DeviceSprayConfigTemplateApi.add(this.form);
      }
      result.then(res => {
        // 移除加载框
        this.loading = false;
        // 提示添加成功
        message.success(res.message);
        // 如果是新增，则form表单置空
        if (!this.isUpdate) {
          this.form = {};
        }
        // 关闭弹框，通过控制visible的值，传递给父组件
        this.updateVisible(false);
        // 触发父组件done事件
        this.$emit('done');
      })
        .catch(() => {
          this.loading = false;
        });
    },
    //保存配置吹--------------end
  }
};
</script>
<style scoped>
/** 用户卡片 */
.workplace-user-card .ele-cell-content {
  overflow: hidden;
}

.workplace-user-card h4 {
  margin-bottom: 6px;
}
.regionclass /deep/ .ant-col-md-11 {
  max-width : 30% !important;
}
.regionclass /deep/ .ant-col-md-13 {
  max-width: 70% !important;
}
</style>
